#include <iostream>
using namespace std;

class Animal
{
public:
    virtual void eat()
    {
        cout << "animal eat" << endl;
    }
    virtual void sleep()
    {
        cout << "animal sleep" << endl;
    }
};

class Cat : public Animal
{
public:
    void eat()
    {
        cout << "cat eat" << endl;
    }
    void sleep()
    {
        cout << "cat sleep" << endl;
    }
};

